home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / general.programming / comp.sys.amiga.programmer_23016_000003.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  966 b 

  1. Path: etek.chalmers.se!chalmers.se!sunic!news.funet.fi!fuug!fipnet!diode.fipnet.fi!elfuerte!harry
  2. From: harry@elfuerte.fipnet.fi (Harri P Pesonen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS6.1 users: please read
  5. Message-ID: <harry.03fq@elfuerte.fipnet.fi>
  6. Date: 5 Dec 92 16:11:58 GMT
  7. Organization: Fipnet, Helsinki, Finland
  8. Lines: 15
  9. X-NewsSoftware: GRn 1.16f (10.17.92) by Mike Schwartz & Michael B. Smith
  10.  
  11. In article ??? koren@fc.hp.com (Steve Koren) writes:
  12. > I can believe the program is doing the correct thing by ANSI standards.
  13. > But personally, I'd expect the result of doing arithmetic on a signed
  14. > and unsigned int to result in a signed number.
  15.  
  16. I thought that it depends on what is on the left side.
  17.  
  18. (unsigned)1 - (signed)2 -> (unsigned)-1, which is 65535 or 2^32-1
  19.  
  20. >    - steve
  21.  
  22. -- 
  23.     Harri Pesonen               harry@elfuerte.fipnet.fi
  24.     Helsinki, Finland, EC?      Markka is floating...  1 USD = 5.1 FIM
  25.